package ch.app.test2;

import java.net.URLDecoder;

import org.apache.axiom.om.util.Base64;

public class DeCoderTest {
	
	public static void main(String[] args) throws Exception {
		
		String digestData = "ewogICJ0YWtlQ29kZUNvdmVyIiA6IGZhbHNlLAogICJmaXJzdENvZGUiIDogIjE2%0D%0AIiwKICAibG9naXN0aWNzQ29kZSIgOiAiQkxDMDAwMDEiLAogICJkZXN0UGhvbmUi%0D%0AIDogIjEzMDYwMzc3NTM2IiwKICAiaXNzaWduIiA6ICIwIiwKICAid2F5YmlsbE5v%0D%0AIiA6ICJZVDExMTEyMjIyMzMzMzUiLAogICJyYWNrTmFtZSIgOiAiUkFfTkciLAog%0D%0AICJkZXN0TmFtZSIgOiAiIiwKICAic2VuZHNtcyIgOiAiZmFsc2UiLAogICJpc25l%0D%0Ad0NsaWVudCIgOiAidHJ1ZSIsCiAgInJhY2tObyIgOiAiUkFfTkciLAogICJ0YWtl%0D%0AQ29kZSIgOiAiMTY2IiwKICAiZW5kQ29kZSIgOiAiNiIsCiAgInF1aWNrIiA6ICJ0%0D%0AcnVlIiwKICAicmFja01vZGUiIDogZmFsc2UKfQ%3D%3D";
		String data = new String(Base64.decode(URLDecoder.decode((String)digestData,"utf-8")),"utf-8");		
		System.out.println("接口参数: "+ data);

		String num = "001";
		System.out.println(String.format("%0" + num.length() + "d", Integer.parseInt(num) + 1));
	}
	

}
